home *** CD-ROM | disk | FTP | other *** search
/ Disc to the Future 2 / Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin / MAC / MPW_TOOL / TOOLS / TOOLS_WI / PERL / UNIX / CONFIG_H.SH (.txt) < prev    next >
Microsoft Windows Help File Content  |  1992-01-04  |  25KB  |  608 lines

  1. : make config.h.SH
  2. case $CONFIG in
  3.     if test ! -f config.sh; then
  4.     ln ../config.sh . || \
  5.     ln ../../config.sh . || \
  6.     ln ../../../config.sh . || \
  7.     (echo "Can't find config.sh."; exit 1)
  8.     echo "Using config.sh from above..."
  9.     fi 2>/dev/null
  10.     . ./config.sh
  11.     ;;
  12. echo "Extracting config.h (with variable substitutions)"
  13. sed <<!GROK!THIS! >config.h -e 's!^#undef!/\*#undef!'
  14. #ifndef config_h
  15. #define config_h
  16. /* config.h
  17.  * This file was produced by running the config.h.SH script, which
  18.  * gets its values from config.sh, which is generally produced by
  19.  * running Configure.
  20.  * Feel free to modify any of this as the need arises.  Note, however,
  21.  * that running config.h.SH again will wipe out any changes you've made.
  22.  * For a more permanent change edit config.sh and rerun config.h.SH.
  23.  /*SUPPRESS 460*/
  24. /* EUNICE
  25.  *    This symbol, if defined, indicates that the program is being compiled
  26.  *    under the EUNICE package under VMS.  The program will need to handle
  27.  *    things like files that don't go away the first time you unlink them,
  28.  *    due to version numbering.  It will also need to compensate for lack
  29.  *    of a respectable link() command.
  30. /* VMS
  31.  *    This symbol, if defined, indicates that the program is running under
  32.  *    VMS.  It is currently only set in conjunction with the EUNICE symbol.
  33. #$d_eunice    EUNICE        /**/
  34. #$d_eunice    VMS        /**/
  35. /* ALIGNBYTES
  36.  *    This symbol contains the number of bytes required to align a double.
  37.  *    Usual values are 2, 4, and 8.
  38. #define ALIGNBYTES $alignbytes        /**/
  39. /* BIN
  40.  *    This symbol holds the name of the directory in which the user wants
  41.  *    to keep publicly executable images for the package in question.  It
  42.  *    is most often a local directory such as /usr/local/bin.
  43. #define BIN "$bin"             /**/
  44. /* BYTEORDER
  45.  *    This symbol contains an encoding of the order of bytes in a long.
  46.  *    Usual values (in hex) are 0x1234, 0x4321, 0x2143, 0x3412...
  47. #define BYTEORDER 0x$byteorder        /**/
  48. /* CPPSTDIN
  49.  *    This symbol contains the first part of the string which will invoke
  50.  *    the C preprocessor on the standard input and produce to standard
  51.  *    output.     Typical value of "cc -E" or "/lib/cpp".
  52. /* CPPMINUS
  53.  *    This symbol contains the second part of the string which will invoke
  54.  *    the C preprocessor on the standard input and produce to standard
  55.  *    output.  This symbol will have the value "-" if CPPSTDIN needs a minus
  56.  *    to specify standard input, otherwise the value is "".
  57. #define CPPSTDIN "$cppstdin"
  58. #define CPPMINUS "$cppminus"
  59. /* HAS_BCMP
  60.  *    This symbol, if defined, indicates that the bcmp routine is available
  61.  *    to compare blocks of memory.  If undefined, use memcmp.  If that's
  62.  *    not available, roll your own.
  63. #$d_bcmp    HAS_BCMP        /**/
  64. /* HAS_BCOPY
  65.  *    This symbol, if defined, indicates that the bcopy routine is available
  66.  *    to copy blocks of memory.  Otherwise you should probably use memcpy().
  67. #$d_bcopy    HAS_BCOPY        /**/
  68. /* HAS_BZERO
  69.  *    This symbol, if defined, indicates that the bzero routine is available
  70.  *    to zero blocks of memory.  Otherwise you should probably use memset()
  71.  *    or roll your own.
  72. #$d_bzero    HAS_BZERO        /**/
  73. /* CASTNEGFLOAT
  74.  *    This symbol, if defined, indicates that this C compiler knows how to
  75.  *    cast negative or large floating point numbers to unsigned longs, ints
  76.  *    and shorts.
  77. /* CASTFLAGS
  78.  *    This symbol contains flags that say what difficulties the compiler
  79.  *    has casting odd floating values to unsigned long:
  80.  *        1 = couldn't cast < 0
  81.  *        2 = couldn't cast >= 0x80000000
  82. #$d_castneg    CASTNEGFLOAT    /**/
  83. #define    CASTFLAGS $castflags    /**/
  84. /* CHARSPRINTF
  85.  *    This symbol is defined if this system declares "char *sprintf()" in
  86.  *    stdio.h.  The trend seems to be to declare it as "int sprintf()".  It
  87.  *    is up to the package author to declare sprintf correctly based on the
  88.  *    symbol.
  89. #$d_charsprf    CHARSPRINTF     /**/
  90. /* HAS_CHSIZE
  91.  *    This symbol, if defined, indicates that the chsize routine is available
  92.  *    to truncate files.  You might need a -lx to get this routine.
  93. #$d_chsize    HAS_CHSIZE        /**/
  94. /* HAS_CRYPT
  95.  *    This symbol, if defined, indicates that the crypt routine is available
  96.  *    to encrypt passwords and the like.
  97. #$d_crypt    HAS_CRYPT        /**/
  98. /* CSH
  99.  *    This symbol, if defined, indicates that the C-shell exists.
  100.  *    If defined, contains the full pathname of csh.
  101. #$d_csh CSH "$csh"        /**/
  102. /* DOSUID
  103.  *    This symbol, if defined, indicates that the C program should
  104.  *    check the script that it is executing for setuid/setgid bits, and
  105.  *    attempt to emulate setuid/setgid on systems that have disabled
  106.  *    setuid #! scripts because the kernel can't do it securely.
  107.  *    It is up to the package designer to make sure that this emulation
  108.  *    is done securely.  Among other things, it should do an fstat on
  109.  *    the script it just opened to make sure it really is a setuid/setgid
  110.  *    script, it should make sure the arguments passed correspond exactly
  111.  *    to the argument on the #! line, and it should not trust any
  112.  *    subprocesses to which it must pass the filename rather than the
  113.  *    file descriptor of the script to be executed.
  114. #$d_dosuid DOSUID        /**/
  115. /* HAS_DUP2
  116.  *    This symbol, if defined, indicates that the dup2 routine is available
  117.  *    to dup file descriptors.  Otherwise you should use dup().
  118. #$d_dup2    HAS_DUP2        /**/
  119. /* HAS_FCHMOD
  120.  *    This symbol, if defined, indicates that the fchmod routine is available
  121.  *    to change mode of opened files.  If unavailable, use chmod().
  122. #$d_fchmod    HAS_FCHMOD        /**/
  123. /* HAS_FCHOWN
  124.  *    This symbol, if defined, indicates that the fchown routine is available
  125.  *    to change ownership of opened files.  If unavailable, use chown().
  126. #$d_fchown    HAS_FCHOWN        /**/
  127. /* HAS_FCNTL
  128.  *    This symbol, if defined, indicates to the C program that
  129.  *    the fcntl() function exists.
  130. #$d_fcntl    HAS_FCNTL        /**/
  131. /* FLEXFILENAMES
  132.  *    This symbol, if defined, indicates that the system supports filenames
  133.  *    longer than 14 characters.
  134. #$d_flexfnam    FLEXFILENAMES        /**/
  135. /* HAS_FLOCK
  136.  *    This symbol, if defined, indicates that the flock() routine is
  137.  *    available to do file locking.
  138. #$d_flock    HAS_FLOCK        /**/
  139. /* HAS_GETGROUPS
  140.  *    This symbol, if defined, indicates that the getgroups() routine is
  141.  *    available to get the list of process groups.  If unavailable, multiple
  142.  *    groups are probably not supported.
  143. #$d_getgrps    HAS_GETGROUPS        /**/
  144. /* HAS_GETHOSTENT
  145.  *    This symbol, if defined, indicates that the gethostent() routine is
  146.  *    available to lookup host names in some data base or other.
  147. #$d_gethent    HAS_GETHOSTENT        /**/
  148. /* HAS_GETPGRP
  149.  *    This symbol, if defined, indicates that the getpgrp() routine is
  150.  *    available to get the current process group.
  151. #$d_getpgrp    HAS_GETPGRP        /**/
  152. /* HAS_GETPGRP2
  153.  *    This symbol, if defined, indicates that the getpgrp2() (as in DG/UX)
  154.  *    routine is available to get the current process group.
  155. #$d_getpgrp2    HAS_GETPGRP2        /**/
  156. /* HAS_GETPRIORITY
  157.  *    This symbol, if defined, indicates that the getpriority() routine is
  158.  *    available to get a process's priority.
  159. #$d_getprior    HAS_GETPRIORITY        /**/
  160. /* HAS_HTONS
  161.  *    This symbol, if defined, indicates that the htons routine (and friends)
  162.  *    are available to do network order byte swapping.
  163. /* HAS_HTONL
  164.  *    This symbol, if defined, indicates that the htonl routine (and friends)
  165.  *    are available to do network order byte swapping.
  166. /* HAS_NTOHS
  167.  *    This symbol, if defined, indicates that the ntohs routine (and friends)
  168.  *    are available to do network order byte swapping.
  169. /* HAS_NTOHL
  170.  *    This symbol, if defined, indicates that the ntohl routine (and friends)
  171.  *    are available to do network order byte swapping.
  172. #$d_htonl    HAS_HTONS    /**/
  173. #$d_htonl    HAS_HTONL    /**/
  174. #$d_htonl    HAS_NTOHS    /**/
  175. #$d_htonl    HAS_NTOHL    /**/
  176. /* index
  177.  *    This preprocessor symbol is defined, along with rindex, if the system
  178.  *    uses the strchr and strrchr routines instead.
  179. /* rindex
  180.  *    This preprocessor symbol is defined, along with index, if the system
  181.  *    uses the strchr and strrchr routines instead.
  182. #$d_index    index strchr    /* cultural */
  183. #$d_index    rindex strrchr    /*  differences? */
  184. /* HAS_KILLPG
  185.  *    This symbol, if defined, indicates that the killpg routine is available
  186.  *    to kill process groups.  If unavailable, you probably should use kill
  187.  *    with a negative process number.
  188. #$d_killpg    HAS_KILLPG        /**/
  189. /* HAS_LSTAT
  190.  *    This symbol, if defined, indicates that the lstat() routine is
  191.  *    available to stat symbolic links.
  192. #$d_lstat    HAS_LSTAT        /**/
  193. /* HAS_MEMCMP
  194.  *    This symbol, if defined, indicates that the memcmp routine is available
  195.  *    to compare blocks of memory.  If undefined, roll your own.
  196. #$d_memcmp    HAS_MEMCMP        /**/
  197. /* HAS_MEMCPY
  198.  *    This symbol, if defined, indicates that the memcpy routine is available
  199.  *    to copy blocks of memory.  Otherwise you should probably use bcopy().
  200.  *    If neither is defined, roll your own.
  201. #$d_memcpy    HAS_MEMCPY        /**/
  202. /* HAS_MKDIR
  203.  *    This symbol, if defined, indicates that the mkdir routine is available
  204.  *    to create directories.  Otherwise you should fork off a new process to
  205.  *    exec /bin/mkdir.
  206. #$d_mkdir    HAS_MKDIR        /**/
  207. /* HAS_MSG
  208.  *    This symbol, if defined, indicates that the entire msg*(2) library is
  209.  *    supported.
  210. #$d_msg    HAS_MSG        /**/
  211. /* HAS_MSGCTL
  212.  *    This symbol, if defined, indicates that the msgctl() routine is
  213.  *    available to stat symbolic links.
  214. #$d_msgctl    HAS_MSGCTL        /**/
  215. /* HAS_MSGGET
  216.  *    This symbol, if defined, indicates that the msgget() routine is
  217.  *    available to stat symbolic links.
  218. #$d_msgget    HAS_MSGGET        /**/
  219. /* HAS_MSGRCV
  220.  *    This symbol, if defined, indicates that the msgrcv() routine is
  221.  *    available to stat symbolic links.
  222. #$d_msgrcv    HAS_MSGRCV        /**/
  223. /* HAS_MSGSND
  224.  *    This symbol, if defined, indicates that the msgsnd() routine is
  225.  *    available to stat symbolic links.
  226. #$d_msgsnd    HAS_MSGSND        /**/
  227. /* HAS_NDBM
  228.  *    This symbol, if defined, indicates that ndbm.h exists and should
  229.  *    be included.
  230. #$d_ndbm    HAS_NDBM        /**/
  231. /* HAS_ODBM
  232.  *    This symbol, if defined, indicates that dbm.h exists and should
  233.  *    be included.
  234. #$d_odbm    HAS_ODBM        /**/
  235. /* HAS_OPEN3
  236.  *    This manifest constant lets the C program know that the three
  237.  *    argument form of open(2) is available.
  238. #$d_open3    HAS_OPEN3        /**/
  239. /* HAS_READDIR
  240.  *    This symbol, if defined, indicates that the readdir routine is available
  241.  *    from the C library to read directories.
  242. #$d_readdir    HAS_READDIR        /**/
  243. /* HAS_RENAME
  244.  *    This symbol, if defined, indicates that the rename routine is available
  245.  *    to rename files.  Otherwise you should do the unlink(), link(), unlink()
  246.  *    trick.
  247. #$d_rename    HAS_RENAME        /**/
  248. /* HAS_RMDIR
  249.  *    This symbol, if defined, indicates that the rmdir routine is available
  250.  *    to remove directories.  Otherwise you should fork off a new process to
  251.  *    exec /bin/rmdir.
  252. #$d_rmdir    HAS_RMDIR        /**/
  253. /* HAS_SELECT
  254.  *    This symbol, if defined, indicates that the select() subroutine
  255.  *    exists.
  256. #$d_select    HAS_SELECT    /**/
  257. /* HAS_SEM
  258.  *    This symbol, if defined, indicates that the entire sem*(2) library is
  259.  *    supported.
  260. #$d_sem    HAS_SEM        /**/
  261. /* HAS_SEMCTL
  262.  *    This symbol, if defined, indicates that the semctl() routine is
  263.  *    available to stat symbolic links.
  264. #$d_semctl    HAS_SEMCTL        /**/
  265. /* HAS_SEMGET
  266.  *    This symbol, if defined, indicates that the semget() routine is
  267.  *    available to stat symbolic links.
  268. #$d_semget    HAS_SEMGET        /**/
  269. /* HAS_SEMOP
  270.  *    This symbol, if defined, indicates that the semop() routine is
  271.  *    available to stat symbolic links.
  272. #$d_semop    HAS_SEMOP        /**/
  273. /* HAS_SETEGID
  274.  *    This symbol, if defined, indicates that the setegid routine is available
  275.  *    to change the effective gid of the current program.
  276. #$d_setegid    HAS_SETEGID        /**/
  277. /* HAS_SETEUID
  278.  *    This symbol, if defined, indicates that the seteuid routine is available
  279.  *    to change the effective uid of the current program.
  280. #$d_seteuid    HAS_SETEUID        /**/
  281. /* HAS_SETPGRP
  282.  *    This symbol, if defined, indicates that the setpgrp() routine is
  283.  *    available to set the current process group.
  284. #$d_setpgrp    HAS_SETPGRP        /**/
  285. /* HAS_SETPGRP2
  286.  *    This symbol, if defined, indicates that the setpgrp2() (as in DG/UX)
  287.  *    routine is available to set the current process group.
  288. #$d_setpgrp2    HAS_SETPGRP2        /**/
  289. /* HAS_SETPRIORITY
  290.  *    This symbol, if defined, indicates that the setpriority() routine is
  291.  *    available to set a process's priority.
  292. #$d_setprior    HAS_SETPRIORITY        /**/
  293. /* HAS_SETREGID
  294.  *    This symbol, if defined, indicates that the setregid routine is
  295.  *    available to change the real and effective gid of the current program.
  296. /* HAS_SETRESGID
  297.  *    This symbol, if defined, indicates that the setresgid routine is
  298.  *    available to change the real, effective and saved gid of the current
  299.  *    program.
  300. #$d_setregid    HAS_SETREGID        /**/
  301. #$d_setresgid    HAS_SETRESGID        /**/
  302. /* HAS_SETREUID
  303.  *    This symbol, if defined, indicates that the setreuid routine is
  304.  *    available to change the real and effective uid of the current program.
  305. /* HAS_SETRESUID
  306.  *    This symbol, if defined, indicates that the setresuid routine is
  307.  *    available to change the real, effective and saved uid of the current
  308.  *    program.
  309. #$d_setreuid    HAS_SETREUID        /**/
  310. #$d_setresuid    HAS_SETRESUID        /**/
  311. /* HAS_SETRGID
  312.  *    This symbol, if defined, indicates that the setrgid routine is available
  313.  *    to change the real gid of the current program.
  314. #$d_setrgid    HAS_SETRGID        /**/
  315. /* HAS_SETRUID
  316.  *    This symbol, if defined, indicates that the setruid routine is available
  317.  *    to change the real uid of the current program.
  318. #$d_setruid    HAS_SETRUID        /**/
  319. /* HAS_SHM
  320.  *    This symbol, if defined, indicates that the entire shm*(2) library is
  321.  *    supported.
  322. #$d_shm    HAS_SHM        /**/
  323. /* HAS_SHMAT
  324.  *    This symbol, if defined, indicates that the shmat() routine is
  325.  *    available to stat symbolic links.
  326. /* VOID_SHMAT
  327.  *    This symbol, if defined, indicates that the shmat() routine
  328.  *    returns a pointer of type void*.
  329. #$d_shmat    HAS_SHMAT        /**/
  330. #$d_voidshmat    VOIDSHMAT        /**/
  331. /* HAS_SHMCTL
  332.  *    This symbol, if defined, indicates that the shmctl() routine is
  333.  *    available to stat symbolic links.
  334. #$d_shmctl    HAS_SHMCTL        /**/
  335. /* HAS_SHMDT
  336.  *    This symbol, if defined, indicates that the shmdt() routine is
  337.  *    available to stat symbolic links.
  338. #$d_shmdt    HAS_SHMDT        /**/
  339. /* HAS_SHMGET
  340.  *    This symbol, if defined, indicates that the shmget() routine is
  341.  *    available to stat symbolic links.
  342. #$d_shmget    HAS_SHMGET        /**/
  343. /* HAS_SOCKET
  344.  *    This symbol, if defined, indicates that the BSD socket interface is
  345.  *    supported.
  346. /* HAS_SOCKETPAIR
  347.  *    This symbol, if defined, indicates that the BSD socketpair call is
  348.  *    supported.
  349. /* OLDSOCKET
  350.  *    This symbol, if defined, indicates that the 4.1c BSD socket interface
  351.  *    is supported instead of the 4.2/4.3 BSD socket interface.
  352. #$d_socket    HAS_SOCKET        /**/
  353. #$d_sockpair    HAS_SOCKETPAIR    /**/
  354. #$d_oldsock    OLDSOCKET    /**/
  355. /* STATBLOCKS
  356.  *    This symbol is defined if this system has a stat structure declaring
  357.  *    st_blksize and st_blocks.
  358. #$d_statblks    STATBLOCKS     /**/
  359. /* STDSTDIO
  360.  *    This symbol is defined if this system has a FILE structure declaring
  361.  *    _ptr and _cnt in stdio.h.
  362. #$d_stdstdio    STDSTDIO     /**/
  363. /* STRUCTCOPY
  364.  *    This symbol, if defined, indicates that this C compiler knows how
  365.  *    to copy structures.  If undefined, you'll need to use a block copy
  366.  *    routine of some sort instead.
  367. #$d_strctcpy    STRUCTCOPY    /**/
  368. /* HAS_STRERROR
  369.  *    This symbol, if defined, indicates that the strerror() routine is
  370.  *    available to translate error numbers to strings.
  371. #$d_strerror    HAS_STRERROR        /**/
  372. /* HAS_SYMLINK
  373.  *    This symbol, if defined, indicates that the symlink routine is available
  374.  *    to create symbolic links.
  375. #$d_symlink    HAS_SYMLINK        /**/
  376. /* HAS_SYSCALL
  377.  *    This symbol, if defined, indicates that the syscall routine is available
  378.  *    to call arbitrary system calls.  If undefined, that's tough.
  379. #$d_syscall    HAS_SYSCALL        /**/
  380. /* HAS_TRUNCATE
  381.  *    This symbol, if defined, indicates that the truncate routine is
  382.  *    available to truncate files.
  383. #$d_truncate    HAS_TRUNCATE        /**/
  384. /* HAS_VFORK
  385.  *    This symbol, if defined, indicates that vfork() exists.
  386. #$d_vfork    HAS_VFORK    /**/
  387. /* VOIDSIG
  388.  *    This symbol is defined if this system declares "void (*signal())()" in
  389.  *    signal.h.  The old way was to declare it as "int (*signal())()".  It
  390.  *    is up to the package author to declare things correctly based on the
  391.  *    symbol.
  392. /* TO_SIGNAL
  393.  *    This symbol's value is either "void" or "int", corresponding to the
  394.  *    appropriate return "type" of a signal handler.  Thus, one can declare
  395.  *    a signal handler using "TO_SIGNAL (*handler())()", and define the
  396.  *    handler using "TO_SIGNAL handler(sig)".
  397. #$d_voidsig    VOIDSIG     /**/
  398. #$define    TO_SIGNAL    $d_tosignal     /**/
  399. /* HASVOLATILE
  400.  *    This symbol, if defined, indicates that this C compiler knows about
  401.  *    the volatile declaration.
  402. #$d_volatile    HASVOLATILE    /**/
  403. /* HAS_VPRINTF
  404.  *    This symbol, if defined, indicates that the vprintf routine is available
  405.  *    to printf with a pointer to an argument list.  If unavailable, you
  406.  *    may need to write your own, probably in terms of _doprnt().
  407. /* CHARVSPRINTF
  408.  *    This symbol is defined if this system has vsprintf() returning type
  409.  *    (char*).  The trend seems to be to declare it as "int vsprintf()".  It
  410.  *    is up to the package author to declare vsprintf correctly based on the
  411.  *    symbol.
  412. #$d_vprintf    HAS_VPRINTF    /**/
  413. #$d_charvspr    CHARVSPRINTF     /**/
  414. /* HAS_WAIT4
  415.  *    This symbol, if defined, indicates that wait4() exists.
  416. #$d_wait4    HAS_WAIT4    /**/
  417. /* HAS_WAITPID
  418.  *    This symbol, if defined, indicates that waitpid() exists.
  419. #$d_waitpid    HAS_WAITPID    /**/
  420. /* GIDTYPE
  421.  *    This symbol has a value like gid_t, int, ushort, or whatever type is
  422.  *    used to declare group ids in the kernel.
  423. #define GIDTYPE $gidtype        /**/
  424. /* GROUPSTYPE
  425.  *    This symbol has a value like gid_t, int, ushort, or whatever type is
  426.  *    used in the return value of getgroups().
  427. #define GROUPSTYPE $groupstype        /**/
  428. /* I_FCNTL
  429.  *    This manifest constant tells the C program to include <fcntl.h>.
  430. #$i_fcntl    I_FCNTL    /**/
  431. /* I_GDBM
  432.  *    This symbol, if defined, indicates that gdbm.h exists and should
  433.  *    be included.
  434. #$i_gdbm    I_GDBM        /**/
  435. /* I_GRP
  436.  *    This symbol, if defined, indicates to the C program that it should
  437.  *    include grp.h.
  438. #$i_grp    I_GRP        /**/
  439. /* I_NETINET_IN
  440.  *    This symbol, if defined, indicates to the C program that it should
  441.  *    include netinet/in.h.
  442. /* I_SYS_IN
  443.  *    This symbol, if defined, indicates to the C program that it should
  444.  *    include sys/in.h.
  445. #$i_niin    I_NETINET_IN        /**/
  446. #$i_sysin    I_SYS_IN        /**/
  447. /* I_PWD
  448.  *    This symbol, if defined, indicates to the C program that it should
  449.  *    include pwd.h.
  450. /* PWQUOTA
  451.  *    This symbol, if defined, indicates to the C program that struct passwd
  452.  *    contains pw_quota.
  453. /* PWAGE
  454.  *    This symbol, if defined, indicates to the C program that struct passwd
  455.  *    contains pw_age.
  456. /* PWCHANGE
  457.  *    This symbol, if defined, indicates to the C program that struct passwd
  458.  *    contains pw_change.
  459. /* PWCLASS
  460.  *    This symbol, if defined, indicates to the C program that struct passwd
  461.  *    contains pw_class.
  462. /* PWEXPIRE
  463.  *    This symbol, if defined, indicates to the C program that struct passwd
  464.  *    contains pw_expire.
  465. /* PWCOMMENT
  466.  *    This symbol, if defined, indicates to the C program that struct passwd
  467.  *    contains pw_comment.
  468. #$i_pwd    I_PWD        /**/
  469. #$d_pwquota    PWQUOTA        /**/
  470. #$d_pwage    PWAGE        /**/
  471. #$d_pwchange    PWCHANGE    /**/
  472. #$d_pwclass    PWCLASS        /**/
  473. #$d_pwexpire    PWEXPIRE    /**/
  474. #$d_pwcomment    PWCOMMENT    /**/
  475. /* I_SYS_FILE
  476.  *    This manifest constant tells the C program to include <sys/file.h>.
  477. #$i_sys_file    I_SYS_FILE    /**/
  478. /* I_SYSIOCTL
  479.  *    This symbol, if defined, indicates that sys/ioctl.h exists and should
  480.  *    be included.
  481. #$i_sysioctl    I_SYSIOCTL        /**/
  482. /* I_TIME
  483.  *    This symbol is defined if the program should include <time.h>.
  484. /* I_SYS_TIME
  485.  *    This symbol is defined if the program should include <sys/time.h>.
  486. /* SYSTIMEKERNEL
  487.  *    This symbol is defined if the program should include <sys/time.h>
  488.  *    with KERNEL defined.
  489. /* I_SYS_SELECT
  490.  *    This symbol is defined if the program should include <sys/select.h>.
  491. #$i_time    I_TIME         /**/
  492. #$i_sys_time    I_SYS_TIME     /**/
  493. #$d_systimekernel    SYSTIMEKERNEL     /**/
  494. #$i_sys_select    I_SYS_SELECT     /**/
  495. /* I_UTIME
  496.  *    This symbol, if defined, indicates to the C program that it should
  497.  *    include utime.h.
  498. #$i_utime    I_UTIME        /**/
  499. /* I_VARARGS
  500.  *    This symbol, if defined, indicates to the C program that it should
  501.  *    include varargs.h.
  502. #$i_varargs    I_VARARGS        /**/
  503. /* I_VFORK
  504.  *    This symbol, if defined, indicates to the C program that it should
  505.  *    include vfork.h.
  506. #$i_vfork    I_VFORK        /**/
  507. /* INTSIZE
  508.  *    This symbol contains the size of an int, so that the C preprocessor
  509.  *    can make decisions based on it.
  510. #define INTSIZE $intsize        /**/
  511. /* I_DIRENT
  512.  *    This symbol, if defined, indicates that the program should use the
  513.  *    P1003-style directory routines, and include <dirent.h>.
  514. /* I_SYS_DIR
  515.  *    This symbol, if defined, indicates that the program should use the
  516.  *    directory functions by including <sys/dir.h>.
  517. /* I_NDIR
  518.  *    This symbol, if defined, indicates that the program should include the
  519.  *    system's version of ndir.h, rather than the one with this package.
  520. /* I_SYS_NDIR
  521.  *    This symbol, if defined, indicates that the program should include the
  522.  *    system's version of sys/ndir.h, rather than the one with this package.
  523. /* I_MY_DIR
  524.  *    This symbol, if defined, indicates that the program should compile
  525.  *    the ndir.c code provided with the package.
  526. /* DIRNAMLEN
  527.  *    This symbol, if defined, indicates to the C program that the length
  528.  *    of directory entry names is provided by a d_namlen field.  Otherwise
  529.  *    you need to do strlen() on the d_name field.
  530. #$i_dirent    I_DIRENT    /**/
  531. #$i_sys_dir    I_SYS_DIR    /**/
  532. #$i_ndir    I_NDIR        /**/
  533. #$i_sys_ndir    I_SYS_NDIR    /**/
  534. #$i_my_dir    I_MY_DIR    /**/
  535. #$d_dirnamlen    DIRNAMLEN    /**/
  536. /* MYMALLOC
  537.  *    This symbol, if defined, indicates that we're using our own malloc.
  538. /* MALLOCPTRTYPE
  539.  *    This symbol defines the kind of ptr returned by malloc and realloc.
  540. #$d_mymalloc MYMALLOC            /**/
  541. #define MALLOCPTRTYPE $mallocptrtype         /**/
  542. /* RANDBITS
  543.  *    This symbol contains the number of bits of random number the rand()
  544.  *    function produces.  Usual values are 15, 16, and 31.
  545. #define RANDBITS $randbits        /**/
  546. /* SCRIPTDIR
  547.  *    This symbol holds the name of the directory in which the user wants
  548.  *    to keep publicly executable scripts for the package in question.  It
  549.  *    is often a directory that is mounted across diverse architectures.
  550. #define SCRIPTDIR "$scriptdir"             /**/
  551. /* SIG_NAME
  552.  *    This symbol contains an list of signal names in order.
  553. #define SIG_NAME "`echo $sig_name | sed 's/ /","/g'`"        /**/
  554. /* STDCHAR
  555.  *    This symbol is defined to be the type of char used in stdio.h.
  556.  *    It has the values "unsigned char" or "char".
  557. #define STDCHAR $stdchar    /**/
  558. /* UIDTYPE
  559.  *    This symbol has a value like uid_t, int, ushort, or whatever type is
  560.  *    used to declare user ids in the kernel.
  561. #define UIDTYPE $uidtype        /**/
  562. /* VOIDHAVE
  563.  *    This symbol indicates how much support of the void type is given by this
  564.  *    compiler.  What various bits mean:
  565.  *        1 = supports declaration of void
  566.  *        2 = supports arrays of pointers to functions returning void
  567.  *        4 = supports comparisons between pointers to void functions and
  568.  *            addresses of void functions
  569.  *    The package designer should define VOIDWANT to indicate the requirements
  570.  *    of the package.  This can be done either by #defining VOIDWANT before
  571.  *    including config.h, or by defining voidwant in Myinit.U.  If the level
  572.  *    of void support necessary is not present, config.h defines void to "int",
  573.  *    VOID to the empty string, and VOIDP to "char *".
  574. /* void
  575.  *    This symbol is used for void casts.  On implementations which support
  576.  *    void appropriately, its value is "void".  Otherwise, its value maps
  577.  *    to "int".
  578. /* VOID
  579.  *    This symbol's value is "void" if the implementation supports void
  580.  *    appropriately.  Otherwise, its value is the empty string.  The primary
  581.  *    use of this symbol is in specifying void parameter lists for function
  582.  *    prototypes.
  583. /* VOIDP
  584.  *    This symbol is used for casting generic pointers.  On implementations
  585.  *    which support void appropriately, its value is "void *".  Otherwise,
  586.  *    its value is "char *".
  587. #ifndef VOIDWANT
  588. #define VOIDWANT $voidwant
  589. #endif
  590. #define VOIDHAVE $voidhave
  591. #if (VOIDHAVE & VOIDWANT) != VOIDWANT
  592. #define void int        /* is void to be avoided? */
  593. #define VOID
  594. #define VOIDP (char *)
  595. #define M_VOID        /* Xenix strikes again */
  596. #else
  597. #define VOID void
  598. #define VOIDP (void *)
  599. #endif
  600. /* PRIVLIB
  601.  *    This symbol contains the name of the private library for this package.
  602.  *    The library is private in the sense that it needn't be in anyone's
  603.  *    execution path, but it should be accessible by the world.  The program
  604.  *    should be prepared to do ~ expansion.
  605. #define PRIVLIB "$privlib"        /**/
  606. #endif
  607. !GROK!THIS!
  608.